package sy.service.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.log4j.Logger;

import sy.dao.SysRoleFunctionMappingDaoI;
import sy.model.SysRoleFunctionMapping;
import sy.service.SysRoleFunctionMappingServiceI;

@Service("sysRoleFunctionMappingService")
public class SysRoleFunctionMappingServiceImpl implements SysRoleFunctionMappingServiceI {
	
	private static final Logger logger = Logger.getLogger(SysRoleFunctionMapping.class);
	private SysRoleFunctionMappingDaoI sysRoleFunctionMappingDao;


	public SysRoleFunctionMappingDaoI getSysRoleFunctionMappingDao() {
		return sysRoleFunctionMappingDao;
	}

	@Autowired
	public void setSysRoleFunctionMappingDao(SysRoleFunctionMappingDaoI sysRoleFunctionMappingDao) {
		this.sysRoleFunctionMappingDao = sysRoleFunctionMappingDao;
	}

	@Override
	public Serializable save(SysRoleFunctionMapping sysRoleFunctionMapping) {
		
		return sysRoleFunctionMappingDao.save(sysRoleFunctionMapping);
	}

	@Override
	public void remove(SysRoleFunctionMapping sysRoleFunctionMapping) {
		// TODO Auto-generated method stub
		sysRoleFunctionMappingDao.remove(sysRoleFunctionMapping);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysRoleFunctionMappingServiceI#update(sy.model.SysRoleFunctionMapping)
	 */
	@Override
	public void update(SysRoleFunctionMapping sysRoleFunctionMapping) {
		// TODO Auto-generated method stub
		sysRoleFunctionMappingDao.update(sysRoleFunctionMapping);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysRoleFunctionMappingServiceI#list()
	 */
	@Override
	public List<SysRoleFunctionMapping> list() {
		// TODO Auto-generated method stub
		return sysRoleFunctionMappingDao.list();
	}

	/* (non-Javadoc)
	 * @see sy.service.SysRoleFunctionMappingServiceI#getSysRoleFunctionMappingById(java.lang.String)
	 */
	@Override
	public SysRoleFunctionMapping getSysRoleFunctionMappingById(String id) {
		// TODO Auto-generated method stub
		return sysRoleFunctionMappingDao.getSysRoleFunctionMappingById(id);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysRoleFunctionMappingServiceI#listSysRoleFunctionMappingByKey(java.lang.String)
	 */
	@Override
	public List<SysRoleFunctionMapping> listSysRoleFunctionMappingByKey(
			String key) {
		// TODO Auto-generated method stub
		return sysRoleFunctionMappingDao.listSysRoleFunctionMappingByKey(key);
	}



}
